<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Music-Player: Finder Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Music-Player
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_finder.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_finder-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Finder Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Header for the class <a class="el" href="class_finder.html" title="Header for the class Finder.">Finder</a>.  
 <a href="class_finder.html#details">More...</a></p>

<p><code>#include &lt;Finder.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Finder:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_finder.png" usemap="#Finder_map" alt=""/>
  <map id="Finder_map" name="Finder_map">
<area href="class_i_visitor.html" title="Header for the class IVisitor." alt="IVisitor" shape="rect" coords="0,0,51,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4029d55e6d27f9d877cb5bc704323bb2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_finder.html#a4029d55e6d27f9d877cb5bc704323bb2">Finder</a> (std::string const &amp;search)</td></tr>
<tr class="memdesc:a4029d55e6d27f9d877cb5bc704323bb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">CTor of class <a class="el" href="class_finder.html" title="Header for the class Finder.">Finder</a>.  <a href="#a4029d55e6d27f9d877cb5bc704323bb2"></a><br/></td></tr>
<tr class="separator:a4029d55e6d27f9d877cb5bc704323bb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bd66bd28b50e52cb4de80fc5d375aac"><td class="memItemLeft" align="right" valign="top">TMedia const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_finder.html#a9bd66bd28b50e52cb4de80fc5d375aac">getMedia</a> () const </td></tr>
<tr class="memdesc:a9bd66bd28b50e52cb4de80fc5d375aac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the list of <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a>.  <a href="#a9bd66bd28b50e52cb4de80fc5d375aac"></a><br/></td></tr>
<tr class="separator:a9bd66bd28b50e52cb4de80fc5d375aac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32b43e1092df9796e02d944ef78d3a89"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_finder.html#a32b43e1092df9796e02d944ef78d3a89">Visit</a> (<a class="el" href="class_song.html">Song</a> *song)</td></tr>
<tr class="memdesc:a32b43e1092df9796e02d944ef78d3a89"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to visit a <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>.  <a href="#a32b43e1092df9796e02d944ef78d3a89"></a><br/></td></tr>
<tr class="separator:a32b43e1092df9796e02d944ef78d3a89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab0271e37bab25093c77c0ec8cc61f97"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_finder.html#aab0271e37bab25093c77c0ec8cc61f97">Visit</a> (<a class="el" href="class_album.html">Album</a> *album)</td></tr>
<tr class="memdesc:aab0271e37bab25093c77c0ec8cc61f97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to visit an <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>.  <a href="#aab0271e37bab25093c77c0ec8cc61f97"></a><br/></td></tr>
<tr class="separator:aab0271e37bab25093c77c0ec8cc61f97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3446ccbe8f3b31de4f917330706c3d65"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_finder.html#a3446ccbe8f3b31de4f917330706c3d65">Visit</a> (<a class="el" href="class_music_collection.html">MusicCollection</a> *collection)</td></tr>
<tr class="memdesc:a3446ccbe8f3b31de4f917330706c3d65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function to visit a <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a>.  <a href="#a3446ccbe8f3b31de4f917330706c3d65"></a><br/></td></tr>
<tr class="separator:a3446ccbe8f3b31de4f917330706c3d65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_i_visitor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_i_visitor')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_i_visitor.html">IVisitor</a></td></tr>
<tr class="memitem:aa781c060abae177e982d545c74d7d9be inherit pub_methods_class_i_visitor"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_visitor.html#aa781c060abae177e982d545c74d7d9be">~IVisitor</a> ()</td></tr>
<tr class="memdesc:aa781c060abae177e982d545c74d7d9be inherit pub_methods_class_i_visitor"><td class="mdescLeft">&#160;</td><td class="mdescRight">DTor of class <a class="el" href="class_i_visitor.html" title="Header for the class IVisitor.">IVisitor</a>.  <a href="#aa781c060abae177e982d545c74d7d9be"></a><br/></td></tr>
<tr class="separator:aa781c060abae177e982d545c74d7d9be inherit pub_methods_class_i_visitor"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Header for the class <a class="el" href="class_finder.html" title="Header for the class Finder.">Finder</a>. </p>
<p>Represents the <a class="el" href="class_finder.html" title="Header for the class Finder.">Finder</a> Visitor (Visitor pattern)</p>
<p>The class <a class="el" href="class_finder.html" title="Header for the class Finder.">Finder</a> searches for medias which contain the search string and adds found medias to a list.</p>
<dl class="section author"><dt>Author</dt><dd>Andreas Lehner </dd></dl>
<dl class="section date"><dt>Date</dt><dd>06.12.2012 </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4029d55e6d27f9d877cb5bc704323bb2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Finder::Finder </td>
          <td>(</td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>search</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>CTor of class <a class="el" href="class_finder.html" title="Header for the class Finder.">Finder</a>. </p>
<p>The CTor initializes the search string that will be searched for in a given media. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">search</td><td>The string that will be searched for. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a9bd66bd28b50e52cb4de80fc5d375aac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TMedia const * Finder::getMedia </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a pointer to the list of <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a>. </p>
<p>Returns a pointer to the list of <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a>. Is used by the visitors. </p>
<dl class="section return"><dt>Returns</dt><dd>A const Pointer to the list of <a class="el" href="class_music_media.html" title="Represents MusicMedia.">MusicMedia</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a32b43e1092df9796e02d944ef78d3a89"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Finder::Visit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_song.html">Song</a> *&#160;</td>
          <td class="paramname"><em>song</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function to visit a <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </p>
<p>This Function visits Songs and is implemented by all of the concrete visitors. All visitors do certain different actions on the passed <a class="el" href="class_song.html" title="Header for the Song class.">Song</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">song</td><td>The <a class="el" href="class_song.html" title="Header for the Song class.">Song</a> to be visited. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_visitor.html#a28a3bf8a80a054a1f1828ca51a1eabe1">IVisitor</a>.</p>

</div>
</div>
<a class="anchor" id="aab0271e37bab25093c77c0ec8cc61f97"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Finder::Visit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_album.html">Album</a> *&#160;</td>
          <td class="paramname"><em>album</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function to visit an <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>. </p>
<p>This Function visits Albums and is implemented by all of the concrete visitors. All visitors do certain different actions on the passed <a class="el" href="class_album.html" title="Header for the Album class.">Album</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">album</td><td>The <a class="el" href="class_album.html" title="Header for the Album class.">Album</a> to be visited. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_visitor.html#af9bab18c18131a791e97a3cb88820e9d">IVisitor</a>.</p>

</div>
</div>
<a class="anchor" id="a3446ccbe8f3b31de4f917330706c3d65"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Finder::Visit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_music_collection.html">MusicCollection</a> *&#160;</td>
          <td class="paramname"><em>collection</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Function to visit a <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a>. </p>
<p>This Function visits <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a> and is implemented by all of the concrete visitors. All visitors do certain different actions on the passed <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">collection</td><td>The <a class="el" href="class_music_collection.html" title="Represents a music collection.">MusicCollection</a> to be visited. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_visitor.html#a6a619fad0dc4e94f836d1f6f512ccc2a">IVisitor</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_finder.html">Finder</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
